﻿using UnityEngine;
using System.Collections;

public class mAniamtionCurve : ScriptableObject
{
    public AnimationCurve localEulerX;

    public AnimationCurve localPosZ;

    public AnimationCurve heightCurve;
    public AnimationCurve widthCurve;
    public mAniamtionCurve()
    {
        localEulerX = new AnimationCurve();
            localEulerX.AddKey(0.166667f * 0, 0f);
                localEulerX.AddKey(0.166667f * 1, -42f);
                    localEulerX.AddKey(0.166667f * 2, -27f);
                        localEulerX.AddKey(0.166667f * 3, 0f);
                    localEulerX.AddKey(0.166667f * 4, 27f);
                localEulerX.AddKey(0.166667f * 5, 42f);
            localEulerX.AddKey(1.0f, 0f);


        localPosZ = new AnimationCurve();
            localPosZ.AddKey(0.166667f * 0, 100f);
                localPosZ.AddKey(0.166667f * 1, 100f);
                    localPosZ.AddKey(0.166667f * 2, 25f);
                        localPosZ.AddKey(0.166667f * 3, 0f);
                    localPosZ.AddKey(0.166667f * 4, 25f);
                localPosZ.AddKey(0.166667f * 5, 100f);
            localPosZ.AddKey(1.0f, 100f);

        heightCurve = new AnimationCurve();
        heightCurve.AddKey(0.166667f * 0, 120f);
        heightCurve.AddKey(0.166667f * 1, 120f);
        heightCurve.AddKey(0.166667f * 2, 110f);
        heightCurve.AddKey(0.166667f * 3, 100f);
        heightCurve.AddKey(0.166667f * 4, 110f);
        heightCurve.AddKey(0.166667f * 5, 120f);
        heightCurve.AddKey(1.0f, 120f);

        widthCurve = new AnimationCurve();
        widthCurve.AddKey(0.166667f * 0, 240f);
        widthCurve.AddKey(0.166667f * 1, 240f);
        widthCurve.AddKey(0.166667f * 2, 265f);
        widthCurve.AddKey(0.166667f * 3, 300f);
        widthCurve.AddKey(0.166667f * 4, 265f);
        widthCurve.AddKey(0.166667f * 5, 240f);
        widthCurve.AddKey(1.0f, 240f);
    }

    
}
